package cn.hnc.checkapi.bean.response;

import java.io.Serializable;

public class SimpleResponseEntity implements Serializable {
   private static final long serialVersionUID = 8369855840503923858L;
   private String msgDesc;
   private Integer msgCode;

   public String getMsgDesc() {
      return this.msgDesc;
   }

   public Integer getMsgCode() {
      return this.msgCode;
   }

   public void setMsgDesc(final String msgDesc) {
      this.msgDesc = msgDesc;
   }

   public void setMsgCode(final Integer msgCode) {
      this.msgCode = msgCode;
   }

   public boolean equals(final Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof SimpleResponseEntity)) {
         return false;
      } else {
         SimpleResponseEntity other = (SimpleResponseEntity)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$msgDesc = this.getMsgDesc();
            Object other$msgDesc = other.getMsgDesc();
            if (this$msgDesc == null) {
               if (other$msgDesc != null) {
                  return false;
               }
            } else if (!this$msgDesc.equals(other$msgDesc)) {
               return false;
            }

            Object this$msgCode = this.getMsgCode();
            Object other$msgCode = other.getMsgCode();
            if (this$msgCode == null) {
               if (other$msgCode != null) {
                  return false;
               }
            } else if (!this$msgCode.equals(other$msgCode)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(final Object other) {
      return other instanceof SimpleResponseEntity;
   }

   public int hashCode() {
      boolean PRIME = true;
      int result = 1;
      Object $msgDesc = this.getMsgDesc();
      result = result * 59 + ($msgDesc == null ? 43 : $msgDesc.hashCode());
      Object $msgCode = this.getMsgCode();
      result = result * 59 + ($msgCode == null ? 43 : $msgCode.hashCode());
      return result;
   }

   public String toString() {
      return "SimpleResponseEntity(msgDesc=" + this.getMsgDesc() + ", msgCode=" + this.getMsgCode() + ")";
   }
}
